﻿
@{
    ViewBag.Title = "Home Page";
}

@section scripts {
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Custom/ArticleJS.js")" type="text/javascript"></script>
}

@using (Ajax.BeginForm("Search", "Home", 
    new AjaxOptions {
     InsertionMode=InsertionMode.Replace,
     HttpMethod="GET",
     OnFailure="searchFailed",     
     LoadingElementId="ajax-loader",
     UpdateTargetId="searchresults",               
}))
{
    <input type="text" name="q" />
    <input type="submit" value="search" />
    <img id="ajax-loader" 
         src="@Url.Content("~/Images/ajax-loader.gif")" 
         style="display:none"/>
}

<div id="searchresults">
    
</div>

